gadget: improve debug message
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 28 Feb 2016 22:52:14 +0000 (14:52 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 29 Feb 2016 18:45:14 +0000 (10:45 -0800)
gtk/gtkcssgadget.c

index 2440879a5a808723a31c9ff672c50bde136afe02..d93075db1963c613566daed6cee4f5cc74650fd6 100644 (file)
@@ -825,7 +825,9 @@ gtk_css_gadget_draw (GtkCssGadget *gadget,
   if (width < 0 || height < 0)
     {
       g_warning ("Drawing a gadget with negative dimensions. "
-                 "Did you forget to allocate a size?");
+                 "Did you forget to allocate a size? (node %s owner %s)",
+                 gtk_css_node_get_name (gtk_css_gadget_get_node (gadget)),
+                 G_OBJECT_TYPE_NAME (gtk_css_gadget_get_owner (gadget)));
       x = 0;
       y = 0;
       width = gtk_widget_get_allocated_width (priv->owner);